import { ronin } from '@wagmi/vue/chains'
import { connectorsForWallets as _connectorsForWallets } from './wallets/connectorsForWallets'
import {
  coinbaseWallet,
  metaMaskWallet,
  okxWallet,
  phantomWallet,
  rabbyWallet,
  roninWallet,
  bybitWallet,
  roninWaypointWallet,
  walletConnectWallet
} from './wallets/walletConnectors'
import { CreateConnectorFn } from '@wagmi/vue'

export const connectorsForWallets = _connectorsForWallets
export const defaultConnectors: readonly CreateConnectorFn[] | undefined = _connectorsForWallets(
  [
    {
      groupName: 'Recommended',
      wallets: [metaMaskWallet, okxWallet, bybitWallet, roninWallet, phantomWallet, rabbyWallet]
    },
    {
      groupName: 'Popular',
      wallets: [
        roninWaypointWallet({
          config: {
            clientId: '767d97f1-8c63-44c3-86ed-c0c97e270e89',
            chainId: ronin.id
          },
          auth: {
            mode: 'popup',
            clientId: '767d97f1-8c63-44c3-86ed-c0c97e270e89',
            scopes: ['wallet', 'openid', 'email', 'profile']
          }
        })
      ]
    },
    {
      groupName: 'More',
      wallets: [walletConnectWallet, coinbaseWallet]
    }
  ],
  {
    appName: 'partyicons',
    projectId: '68fd735f08d87e15c3d5f71841d6182b'
  }
)
